label: Deny drag gesture when not selectable
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 23 Dec 2015 00:51:30 +0000 (01:51 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 23 Dec 2015 13:07:00 +0000 (14:07 +0100)
We don't actually do anything when the label is not selectable
except for consuming the event, which breaks for instance titlebar
drags with labels that contain links. Simply deny the gesture in
that case to allow the event to bubble up normally.

https://bugzilla.gnome.org/show_bug.cgi?id=759798

gtk/gtklabel.c

index f7e1445bbaf34cd5dade04cf931b9c6bced67451..af158e928fc641b41992da24c4604a07bcb73803 100644 (file)
@@ -5147,7 +5147,7 @@ gtk_label_drag_gesture_begin (GtkGestureDrag *gesture,
   const GdkEvent *event;
   gint min, max, index;
 
-  if (!info)
+  if (!info || !info->selectable)
     {
       gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_DENIED);
       return;